<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
    <head>
        <title></title>
    </head>
    <body>
        <?php
            
            include "SqliBench.php";
            
            $sqlibenchObj = new SqliBench("../sqlibench_criteria.xml");           
            echo "<h3>First Level Categories</h3>";
            echo "<pre>";
            $pathLabels = array();
            print_r($sqlibenchObj->getLabels($pathLabels));
            echo "</pre>";
            echo "<h3>Direct Children Under Category with Label Performance</h3>";
            $pathLabels = array('Performance');
            echo "<pre>";
            print_r($sqlibenchObj->getLabels($pathLabels));
            echo "</pre>";
            echo "<h3>Direct Children Under SubCategory with Label Performance,DBMS Banner</h3>";
            $pathLabels = array('Performance','DBMS Banner');
            echo "<pre>";
            print_r($sqlibenchObj->getLabels($pathLabels));
            echo "</pre>";
            echo "<h3>Direct Children Under SubCategory with Label Performance,DBMS Banner,Blind</h3>";
            $pathLabels = array('Performance','DBMS Banner', 'Blind');
            echo "<pre>";
            print_r($sqlibenchObj->getLabels($pathLabels));
            echo "</pre>";
            echo "<h3>Direct Children Under SubCategory with Label Performance,DBMS Banner,Blind,MSSQL</h3>";
            $pathLabels = array('Performance','DBMS Banner', 'Blind', 'MSSQL');
            echo "<pre>";
            print_r($sqlibenchObj->getLabels($pathLabels));
            echo "</pre>";
            echo "<h3>Direct Children Under SubCategory with Label Performance,DBMS Banner,Blind,MSSQL,sqlmap v0.5</h3>";
            $pathLabels = array('Performance','DBMS Banner', 'Blind', 'MSSQL', 'sqlmap v0.5');
            echo "<pre>";
            if(count($sqlibenchObj->getLabels($pathLabels)) == 0)
              echo $sqlibenchObj->getContent($pathLabels);            
            echo "</pre>";
            
            
        ?>
    </body>
</html>
